import request from '@/utils/request'

// 查询企业资源转移记录列表
export function listResource(query) {
  return request({
    url: '/house/resource/list',
    method: 'get',
    params: query
  })
}

// 查询企业资源转移记录详细
export function getResource(id) {
  return request({
    url: '/house/resource/' + id,
    method: 'get'
  })
}

// 新增企业资源转移记录
export function addResource(data) {
  return request({
    url: '/house/resource',
    method: 'post',
    data: data
  })
}

// 修改企业资源转移记录
export function updateResource(data) {
  return request({
    url: '/house/resource',
    method: 'put',
    data: data
  })
}

// 删除企业资源转移记录
export function delResource(id) {
  return request({
    url: '/house/resource/' + id,
    method: 'delete'
  })
}
